import lucene.server.client.ClientWrapper;
import lucene.server.client.QueryClient;

import java.util.ArrayList;
import java.util.List;


public class MainSearch {
    //创建客户端
    static QueryClient queryClient = new QueryClient("http://localhost:9999","client","client");
    public static void main(String[] args) {

        List<Object> mainKids = new ArrayList<>();
        mainKids.add("3");
        mainKids.add("2");
        mainKids.add("1");
        ClientWrapper clientWrapper = ClientWrapper.create()
                .SELECT("*")
                .From("sup")
                .ge("cert_date_begin", "2023-01-01")
                .in("main_kind", mainKids)
                .orderBy("main_kind", false);
            System.out.println(clientWrapper.build());
            String str = queryClient.request(clientWrapper);
            System.out.println(JsonUtil.formatJson(str) );
    }
}